Skip to content

VirtualTimeSchedulerBase.GetService(Type) method

Defined in

Type: VirtualTimeSchedulerBase Namespace: System.Reactive.Concurrency Assembly: System.Reactive.dll

Applies to

netstandard2.0

protected virtual object? GetService(Type serviceType)

Summary: Discovers scheduler services by interface type. The base class implementation supports only the IStopwatchProvider service. To influence service discovery - such as adding support for other scheduler services - derived types can override this method.

Parameters

NameTypeDescription
serviceTypeTypeScheduler service interface type to discover.

Returns: object? -- Object implementing the requested service, if available; null otherwise.